package com.situ.hr4.w.service;

import com.situ.hr4.pojo.ConfigPrimaryKey;
import com.situ.hr4.pojo.SalaryStandardDetails;
import com.situ.hr4.w.dao.XCGLdao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.beans.Transient;
import java.util.List;
import java.util.Map;

@Service
public class XCGLserviceimpl implements  XCGLservice{
    @Autowired
    XCGLdao dao;

    //全查薪酬项目
    @Override
    public List<SalaryStandardDetails> qcxcxm() {
        return dao.qcxcxm();
    }

    @Transient
    //添加薪酬项目
    @Override
    public void tjxcxm(SalaryStandardDetails ssd) {
        dao.tjxcxm(ssd);
    }

    @Transient
    //根据id删除薪酬项目
    @Override
    public void scxcxm(int id) {
        dao.scxcxm(id);
    }

    //查询数据库中的表
    @Override
    public List<ConfigPrimaryKey> cxsy() {
        return dao.cxsy();
    }

    //根据数据库查询所有列名
    @Override
    public List<ConfigPrimaryKey> cxsylm(String table) {
        return dao.cxsylm(table);
    }

    //查询表
    @Override
    public List<Map> cxb(Map m) {
        return dao.cxb(m);
    }

    //通过键去找名字
    @Override
    public String cxmz(String s,String table) {
        return dao.cxmz(s,table);
    }
}
